package com.bango.android;

public enum BangoLoggingLevel {
	ALL(0),
	LEVEL_1(1),
	LEVEL_2(2),
	LEVEL_3(4),
	LEVEL_4(8),
	LEVEL_5(16),
	LEVEL_6(32),
	LEVEL_7(64),
	LEVEL_8(128),
	LEVEL_9(256),
	LEVEL_10(512);
	
	public static final int TOTAL_LEVELS = 10;
	private static BangoLoggingLevel[] valuesCached = null;
	private final int value;
	
	BangoLoggingLevel(int value)
	{
		this.value = value;		
	}
	/**
	 * Gets integer value of the BangoLoggingLevel instance
	 * @return
	 */
	public int value()
	{
		return value;		
	}
		
	/**
	 * A wrapper around enum.values()
	 * @return
	 */
	public static BangoLoggingLevel[] valuesCached()
	{
			if(null == valuesCached)
			{ 
				valuesCached = values();
			}
			return valuesCached;
		
	}
}
